home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-09-26 | 3.7 KB | 94 lines | [TEXT/MPS ] |
- #
- # makefile for "Simple Atom Ext.r", the example for InstaCompOne resource compression
- #
- #
- # to build installer script :
- # 1) select "Build" from "Build" menu
- # 2) type script name "Simple Atom Ext" ( note: ".r" is omitted )
- #
- # to build debug version of installer script :
- # 1) select "Build" from "Build" menu
- # 2) type script name "Simple Atom Ext.debug" ( note: ".r" is omitted )
- #
- # NOTE: When this script is built, ScriptCheck will display a couple of warning
- # messages stating that you should "use a ScriptCheck extension to compute
- # the correct target size" for 'infa' ID = 10000 and 'inra' ID = 10000.
- # Since our example atom extender does not effect the file size, this
- # ScriptCheck extension is not necessary.
-
-
-
-
- # • script names
- scriptName = Simple Atom Ext
- debugScriptName = {scriptName}.debug
-
- sourceFile = DirectCopyExtender
-
- scriptCheckVersExtName = DirectCopySCVersExt
- scriptCheckInfoExtName = DirectCopySCInfoExt
- scriptCheckExtName = DirectCopySCExt
- sourceSCExtFile = DirectCopyScriptCheckExt
-
-
- OBJECTS = DirectCopyExtender.c.o
- ScriptCheckDir = :::Tools:Released:ScriptCheck 4.0.3:
- InstallerCIncDir = :::DeveloperInterfaces:CIncludes:
- InstallerCSrcDir = :::DeveloperInterfaces:CSources:
- InstallerRIncDir = :::DeveloperInterfaces:RIncludes:
- InstallerDebuggerDir = :::Tools:Released:Installer Debugger 4.0.3:
-
- COptions = -b -r -sym off
- LinkOptions = -mf -sym off
-
- "{debugScriptName}" ƒ "{scriptName}"
- Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
- Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
-
- "{scriptName}" ƒƒ "{sourceFile}" "{scriptName}.r" "{scriptName}.scx"
- set theTime "'`date -d -s` 12:00:00 PM'"
- Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
- SetFile -a b -d {theTime} "{scriptName}"
- "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
- SetFile -m {theTime} "{scriptName}"
-
-
- "{sourceFile}" ƒƒ Makefile "{OBJECTS}"
- Link {LinkOptions} -t rsrc -c RSED -rt infn=144 -m "{sourceFile}" -sg "{sourceFile}" ∂
- "{OBJECTS}" ∂
- "{Libraries}Interface.o" ∂
- -o "{sourceFile}"
-
- "{sourceFile}.c.o" ƒ Makefile "{sourceFile}.c"
- SC {COptions} "{sourceFile}.c" -i "{InstallerCIncDir}","{InstallerCSrcDir}","{InstallerRIncDir}"
-
- "{scriptCheckExtName}" ƒƒ Makefile "{scriptCheckExtName}.r" "{scriptCheckInfoExtName}.rsrc" "{scriptCheckVersExtName}.rsrc"
- Rez -o "{scriptCheckExtName}.rsrc" "{scriptCheckExtName}.r" -t rsrc -c RSED -i "{InstallerRIncDir}"
- DeRez "{scriptCheckInfoExtName}.rsrc" | Rez -o "{scriptCheckExtName}.rsrc" -append
- DeRez "{scriptCheckVersExtName}.rsrc" | Rez -o "{scriptCheckExtName}.rsrc" -append
-
- "{scriptCheckInfoExtName}.rsrc" ƒƒ Makefile "{sourceSCExtFile}.c.o"
- Link {LinkOptions} -t rsrc -c RSED -rt scfn=129 -m main -sg Main ∂
- "{sourceSCExtFile}.c.o" ∂
- "{Libraries}Interface.o" ∂
- -o "{scriptCheckInfoExtName}.rsrc"
-
- "{sourceSCExtFile}.c.o" ƒ Makefile "{sourceSCExtFile}.c"
- SC {COptions} "{sourceSCExtFile}.c" -i "{InstallerCIncDir}","{InstallerCSrcDir}","{InstallerRIncDir}"
-
- "{scriptCheckVersExtName}.rsrc" ƒƒ Makefile "{scriptCheckVersExtName}.c.o"
- Link {LinkOptions} -t rsrc -c RSED -rt scfn=130 -m main -sg Main ∂
- "{scriptCheckVersExtName}.c.o" ∂
- "{Libraries}Interface.o" ∂
- -o "{scriptCheckVersExtName}.rsrc"
-
- "{scriptCheckVersExtName}.c.o" ƒ Makefile "{scriptCheckVersExtName}.c"
- SC {COptions} "{scriptCheckVersExtName}.c" -i "{InstallerCIncDir}","{InstallerCSrcDir}","{InstallerRIncDir}"
-
- # be sure that's there's a copy of the DirectCopy ScriptCheck extension in current folder
-
- "{scriptName}.scx" ƒ "{scriptCheckExtName}"
- # copy and rename the original scriptcheck extension
- Duplicate -y "{scriptCheckExtName}.rsrc" "{scriptName}.scx"
-
-